package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.FlightRefundRequestMapper;
import com.ktgj.flight.domain.FlightRefundRequest;
import com.ktgj.flight.service.IFlightRefundRequestService;

/**
 * 退款申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class FlightRefundRequestServiceImpl implements IFlightRefundRequestService 
{
    @Autowired
    private FlightRefundRequestMapper flightRefundRequestMapper;

    /**
     * 查询退款申请
     * 
     * @param refundRequestId 退款申请ID
     * @return 退款申请
     */
    @Override
    public FlightRefundRequest selectFlightRefundRequestById(Long refundRequestId)
    {
        return flightRefundRequestMapper.selectFlightRefundRequestById(refundRequestId);
    }

    /**
     * 查询退款申请列表
     * 
     * @param flightRefundRequest 退款申请
     * @return 退款申请
     */
    @Override
    public List<FlightRefundRequest> selectFlightRefundRequestList(FlightRefundRequest flightRefundRequest)
    {
        return flightRefundRequestMapper.selectFlightRefundRequestList(flightRefundRequest);
    }

    /**
     * 新增退款申请
     * 
     * @param flightRefundRequest 退款申请
     * @return 结果
     */
    @Override
    public int insertFlightRefundRequest(FlightRefundRequest flightRefundRequest)
    {
        return flightRefundRequestMapper.insertFlightRefundRequest(flightRefundRequest);
    }

    /**
     * 修改退款申请
     * 
     * @param flightRefundRequest 退款申请
     * @return 结果
     */
    @Override
    public int updateFlightRefundRequest(FlightRefundRequest flightRefundRequest)
    {
        return flightRefundRequestMapper.updateFlightRefundRequest(flightRefundRequest);
    }

    /**
     * 批量删除退款申请
     * 
     * @param refundRequestIds 需要删除的退款申请ID
     * @return 结果
     */
    @Override
    public int deleteFlightRefundRequestByIds(Long[] refundRequestIds)
    {
        return flightRefundRequestMapper.deleteFlightRefundRequestByIds(refundRequestIds);
    }

    /**
     * 删除退款申请信息
     * 
     * @param refundRequestId 退款申请ID
     * @return 结果
     */
    @Override
    public int deleteFlightRefundRequestById(Long refundRequestId)
    {
        return flightRefundRequestMapper.deleteFlightRefundRequestById(refundRequestId);
    }
}
